OpenStack Juno : Configure Ceilometer#3
2015/01/29 |
Configure OpenStack Metering Service (Ceilometer).
This example shows to configure Metering Services on the existing environment like follows.
| +------------------+ | +------------------------+ | [ Control Node ] | | | [ Network Node ] | | Keystone |10.0.0.30 | 10.0.0.50| DHCP,L3,L2 Agent | | Glance |------------+------------| Metadata Agent | | Nova API |eth0 | eth0| Ceilometer Services | | Neutron Server | | | | +------------------+ | +------------------------+ eth0|10.0.0.51 +--------------------+ | [ Compute Node ] | | Nova Compute | | L2 Agent | | Ceilometer-Compute | +--------------------+ |
Configure Ceilometer Compute on Compute Node on this section.
|
|
[1] | Install Ceilometer Compute and so on. |
[root@node01 ~]# yum --enablerepo=openstack-juno,epel -y install openstack-ceilometer-compute python-ceilometer python-ceilometerclient
|
[2] | Configure Nova Compute. |
[root@node01 ~]#
vi /etc/nova/nova.conf # add follows in the "[DEFAULT]" section
instance_usage_audit=True
instance_usage_audit_period=hour notify_on_state_change=vm_and_task_state notification_driver=nova.openstack.common.notifier.rpc_notifier notification_driver=ceilometer.compute.nova_notifier systemctl restart openstack-nova-compute |
[3] | Configure Ceilometer Compute. |
[root@node01 ~]# mv /etc/ceilometer/ceilometer.conf /etc/ceilometer/ceilometer.conf.org
[root@node01 ~]#
vi /etc/ceilometer/ceilometer.conf # create new
[DEFAULT]
# RabbitMQ server rabbit_host=10.0.0.30 rabbit_port=5672 # RabbitMQ userID rabbit_userid=guest # RabbitMQ userID's password rabbit_password=password # connection info for Keystone [keystone_authtoken] auth_host=10.0.0.30 auth_port=35357 auth_protocol=http auth_uri=http://10.0.0.30:5000/v2.0 admin_user=ceilometer admin_password=servicepassword admin_tenant_name=service # set the secret key which is shared among nodes (specify the same one with central server) [publisher] metering_secret=meteringsecret # authentication info for Ceilometer [service_credentials] os_username=ceilometer os_password=servicepassword os_tenant_name=service os_auth_url=http://10.0.0.30:35357/v2.0 chgrp ceilometer /etc/ceilometer/ceilometer.conf [root@node01 ~]# chmod 640 /etc/ceilometer/ceilometer.conf [root@node01 ~]# systemctl start openstack-ceilometer-compute [root@node01 ~]# systemctl enable openstack-ceilometer-compute |